<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>layuiAdmin 网站用户 iframe 框</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport"
          content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
    <link rel="stylesheet" href="/layuiAdmin/dist/layuiadmin/layui/css/layui.css" media="all">
    <!--    <link rel="stylesheet" href="/layuiAdmin/src/layuiadmin/style/admin.css" media="all">-->
    <script src="/layuiAdmin/dist/layuiadmin/layui/layui.js"></script>
</head>
<body>

<div class="layui-form" style="padding: 20px 0 0 0;">
    <div class="layui-form-item">
        <label class="layui-form-label">名称</label>
        <div class="layui-input-inline">
            <input type="text" name="name" lay-verify="required" placeholder="请输入名称" autocomplete="off"
                   class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">权限</label>
        <div class="layui-input-inline">
            <div id="test7" class="demo-tree"></div>
        </div>
    </div>


    <div class="layui-form-item layui-hide">
        <input type="button"  lay-submit lay-filter="LAY-user-front-submit" id="LAY-user-front-submit" value="确认">
    </div>
</div>

<script>
    layui.config({
        base: '/layuiAdmin/dist/layuiadmin/' //静态资源所在路径
    }).extend({
        index: 'lib/index' //主入口模块
    }).use(['index', 'form',  'tree', 'util'], function () {
        var $ = layui.$
            , form = layui.form
            , tree = layui.tree
        var web_table = "{$get_menu}";
        web_table = JSON.parse(web_table.replace(/&quot;/g, '"'));
        tree.render({
            elem: '#test7'
            , data: web_table
            , showCheckbox: true
            , accordion:true
        });


    })
</script>
</body>
</html>